// 分页查询
function serch_bean(pageNum){
    //form表单序列化
    var all_val = $("#asdasd").serializeArray();
    var pageN = pageNum;
    $.get("/myspringboot/selectUserAll",{map:all_val,pageNum:pageN},function(pageInfo){
        var aaaa = "";  //将后端返回的参数转化为一个字符串
        $("#checkOne").empty();
        var result = pageInfo.data.list;
        yibu(pageInfo.data.pages,pageInfo.data.pageNum);
        for (var i = 0; i < result.length; i++) {
            //循环遍历
            aaaa += "<tr><td>"+result[i].user.uId+"</td><td>" + result[i].user.uName + "</td><td>" + result[i].role.rName +"</td>" +
                "<td>" + result[i].user.uPassword + "</td><td>" + result[i].user.uState + "</td><td>" + result[i].user.uCompany +"</td>" +
                "<td>" + result[i].user.uAdress+ "</td><td>" + result[i].user.uPostalcode+ "</td><td>" + result[i].user.uContacts+"</td>" +
                "<td>" + result[i].user.uPhone+ "</td><td>" + result[i].user.uEmail+ "</td></tr>";


        }
        $("#checkOne").append(aaaa);
    })

}
//多条件查询
function serch_bean1(pageNum){
    //form表单序列化
    var all_val = $("#asdasd").serializeArray();
    $.get("/myspringboot/selectUser",all_val,function(result){
        var aaaa = "";  //将后端返回的参数转化为一个字符串
        $("#checkOne").empty();
        for (var i = 0; i < result.length; i++) {
            //循环遍历
            aaaa += "<tr><td>"+result[i].user.uId+"</td><td>" + result[i].user.uName + "</td><td>" + result[i].role.rName +"</td>" +
                "<td>" + result[i].user.uPassword + "</td><td>" + result[i].user.uState + "</td><td>" + result[i].user.uCompany +"</td>" +
                "<td>" + result[i].user.uAdress+ "</td><td>" + result[i].user.uPostalcode+ "</td><td>" + result[i].user.uContacts+"</td>" +
                "<td>" + result[i].user.uPhone+ "</td><td>" + result[i].user.uEmail+ "<td></tr>";
        }
        $("#checkOne").append(aaaa);
    })
}